package com.luokun.vue_shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.luokun.vue_shop.entity.SpManager;
import com.luokun.vue_shop.entity.SpPermission;
import com.luokun.vue_shop.model.SpManagerModel;
import com.luokun.vue_shop.model.SpPermissionApiModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ISpManagerService extends IService<SpManager> {
    //查询管理员数据
    IPage<SpManagerModel> getSpManager(Integer pageNo, Integer pageSize,String mgName);

    //查询总记录数
    Integer getcount(String mgName);

    /**
     * 修改管理员状态
     *
     * @param mgId    //选中要修改的管理员id
     * @param mgState //状态
     * @return
     */
    Integer updSpManager(Integer mgId,Integer mgState);

    List<SpPermissionApiModel> getRightsList();



}
